/* start .main-section */
@media screen{
    .main-section{
        min-height:calc(100vh - 82px - 104px);
    }
}

@media print{
    a{
        text-decoration: none !important;
    }
}
.my-p-mb-0 p{
    margin-bottom: 0;
}
@media screen and (max-width: 480px){
    .hide-in-phone{
        display: none;
    }
}
a:hover{
    text-decoration: none;
}

/* بديل التيكست اريا */
.ck.ck-editor__editable_inline{
    border: 2px solid #ccc!important;
}
.ck.ck-editor__editable_inline:focus{
    border: 2px solid #012445c7!important;
}
.editor{
    background-color: white;
    font-size: 16px;
    font-weight: normal;
    color: black;
}

/* مؤشر الماوس */
.cursor-pointer{
    cursor: pointer;
}

/* اخفاء اسهم الزيادة والنقصان */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
}
input[type=number] {
    /* Set some optional styles for the input field */
    appearance: none;
    -moz-appearance: textfield;
}

/* balloon */
.balloon-info{
    --balloon-color: #17a2b8!important;
    --balloon-font-size: 16px;
}

/* pagenatore */
.page-link:focus {
    background-color: white;
    box-shadow: none;
}

/* user photo */
.personal-image {
    text-align: center;
}
.personal-image input[type="file"] {
    display: none;
}
.personal-figure {
    position: relative;
    width: 150px;
    height: 150px;
}
.personal-avatar {
    cursor: pointer;
    width: 150px;
    height: 150px;
    box-sizing: border-box;
    border-radius: 100%;
    border: 2px solid transparent;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
    transition: all ease-in-out .3s;
}
.personal-avatar:hover {
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.5);
}
.personal-figcaption {
    cursor: pointer;
    position: absolute;
    top: 0px;
    width: inherit;
    height: inherit;
    border-radius: 100%;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: all ease-in-out .3s;
}
.personal-figcaption:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, .5);
}
.personal-figcaption > img {
    margin-top: 70px;
    width: 50px;
    height: 50px;
}

/* start first offcanvas */
#firstOffcanvas li{
    background-color: #003a72;
    border-left: 0;
    border-right: 0;
    border-color: #ffffff93;
    color: white;
    font-size: 1.1rem;
}
#firstOffcanvas li:hover{
    background-color: #012445c7;
    color: #ffc107;
}
#firstOffcanvas a{
    text-decoration: none;
}
/* end first offcanvas */

/* start Offcanvas social-media row */
.social a{
    font-size: 23px;
    font-weight: bold;
    color: #ffc107;
    margin: 0px 2px 2px;
    text-decoration: none;
    display: inline-block;
    width: 2em;
    height: 2em;
    line-height: 1.7em;
    border: 3px solid #ffc107;
    transition: all .2s ease-in-out;
    border-radius: 50%;
    text-align: center;
}
.social a:hover{
    background-color: #ffc107;
    color: white;
    border-radius: 4px;
}
/* end Offcanvas social-media row */

/* خلايا الجدول */
.td-main-bg-color tr td{
    background-color: #003a72!important;
    color: white;
}

/* start to top scroll button */
#scroll-top{
    width: 40px;
    height: 40px;
    color: #ffc107;
    text-align: center;
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 100;
    border: 3px solid #ffc107;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
    display: none;
    
}
#scroll-top:hover{
    opacity: 1;
    background-color: #003a72;
    transition: all .2s ease-in-out;
}

/* end to top scroll button */

/* general */

/* اضهار كلمة المرور */
.show-password{
    position: relative;
}
.show-password a{
    position: absolute;
    top: 33px;
    left: 10px;
    font-weight: bold;
    color: #102e5e;
}
/* نهاية اضهار كلمة المرور */

/* start scroll bar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* Track */
::-webkit-scrollbar-track {
    background: white;
}

/* Scrollbar thumb */
::-webkit-scrollbar-thumb {
    background: #102e5e; 
    transition: background-color 0.5s ease-in-out; /* Add transition here */
}

/* Scrollbar thumb hover */
::-webkit-scrollbar-thumb:hover {
    background: #ffc107;
}
/* end scroll bar */

/* التدوير 180 */
.rotate-180{
    transform: rotate(180deg);
}

.main-page-nav-icon-col{
    background-color: white;
    border: 3px  #ffc107;
    min-height: 100px;
    text-align: center;
}
.main-page-nav-icon-col a{
    font-size: 20px;
}

/* الالوان الرئيسية */
.main-color{
    color: #003a72;
}
.main-color-h:hover{
    color: #003a72;
    transition: all .2s ease-in-out;
}

.main-bg-color{
    background-color: #003a72;
}
.main-bg-color-h:hover{
    background-color: #003a72 !important;
    transition: all .2s ease-in-out;
}

.second-color{
    color: #ffc107!important;
}
.second-color-h:hover{
    color: #ffc107!important;
    transition: all .2s ease-in-out;
}
.white-color-h:hover{
    color: white!important;
    transition: all .2s ease-in-out;
}

/* end general */

/* start select2 lyp */
.select2-dropdown {
    z-index: 1056;
}
.select2-container{
    display: block;
    color: #444;
}
.select2-results__options{
    text-align: right!important;
}
.select2-selection{
    min-height: 37px!important;
}
.select2-selection__rendered{
    line-height: 36px!important;
}
.select2-search__field{
    min-height: 28px;
}
/* end select2 lyp */

/* Start tosatr js */

/* تنسيق الالرت */
/* toast-success */
.toast-success .toast-progress {
    background-color: white;
    opacity: 1!important;
}

.toast-success{
    text-align: right;
    font-weight: bold;
    font-size: 16px;
    background-color: #003a72!important;
    margin-top: 45px!important;
}
/* toast-error */
.toast-error .toast-progress {
    background-color: white;
    opacity: 1!important;
}

.toast-error{
    text-align: right;
    font-weight: bold;
    font-size: 16px;
    width: 340px!important;
    margin-top: 45px!important;
}
/* toast-warning */
.toast-info .toast-progress {
    background-color: white;
    opacity: 1!important;
}

.toast-info{
    text-align: right;
    font-weight: bold;
    font-size: 16px;
    width: 340px!important;
    margin-top: 45px!important;
}
/* end tosatr js */

.text-break{
    word-break: break-word;
}

.ck-balloon-panel_with-arrow{
    z-index: 1200!important;
    display: block;
    direction: ltr;
}

/* start my-data-table */
.table-layer{
    z-index: 2;
    opacity: 0.4;
}
.table-responsive{
    white-space: nowrap;
}
thead tr th{
    background-color: #003a72!important;
    color: white;
}
.thead-tr-th tr th{
    color: white!important;
}
td, th{
    text-align: center!important;
    vertical-align: middle!important;
}
.td-width-75-150{
    min-width:75px;
    max-width:150px;
    white-space: normal;
}
.td-width-75-250{
    min-width:75px;
    max-width:250px;
    white-space: normal;
}

/* end my-data-table */

/* end .main-section */

/* Start Navbar */

.main-nav{
    background-color: #003a72;
    transition: background-color 1s ease; /* Smooth transition */
}
.main-nav a{
    color: #ffc107;
    text-decoration: none;
}
.main-nav a:hover{
    color: #fff;
    transition-duration: 0.2s;
}

.navbar-nav .main-nav a{
    font-weight: bold;
    text-align: right;
}
.navbar-nav .main-nav a:hover{
    background-color: #003a72;
    color: #fff;
    transition: 0.2s;
}

.r-nav-opacity{
    background-color: rgb(3, 40, 76)!important;
}
/* End Navbar */
.responsive-img-container{
    overflow-x: auto;
    padding-bottom: 10px;
}
.responsive-img-container img {
    max-width: 100%;
    height: fit-content;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

